package com.itheima.bos.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.itheima.bos.bean.base.FixedArea;
import com.itheima.bos.dao.FixedAreaDao;
import com.itheima.bos.service.FixedAreaService;

@Service
@Transactional
public class FixedAreaServiceImpl implements FixedAreaService {

	@Autowired
	private FixedAreaDao dao;

	@Override
	public void save(FixedArea model) {
		dao.save(model);

	}

	@Override
	public Page<FixedArea> findPageData(Specification<FixedArea> specification, Pageable pageAble) {
		// TODO Auto-generated method stub
		return dao.findAll(specification, pageAble);
	}

}
